package com.xintai.sparepart.spareandpart.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xintai.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xintai.common.annotation.Excel;
import com.xintai.common.core.domain.BaseEntity;

/**
 * 仓库对象 bei_cangku
 *
 * @author xintai
 * @date 2020-12-22
 */
public class BeiCangku extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 仓库主键 */
    private Long cangkuId;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String cangkuName;

    /** 是否删除， 字典数据不删除，0  正常可用，1 删除禁用， 但可关联查询 */
    @Excel(name = "状态")
    private String cangkuIsdel;

    /** 备注 */
    @Excel(name = "备注")
    private String cangkuRemark;

    /** 维护人ID */
    @Excel(name = "维护人ID")
    private Long cangkuUid;

    /** 维护时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "维护时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date cangkuTime;

    /**用户*/
    private SysUser sysUser;

    public void setCangkuId(Long cangkuId)
    {
        this.cangkuId = cangkuId;
    }

    public Long getCangkuId()
    {
        return cangkuId;
    }
    public void setCangkuName(String cangkuName)
    {
        this.cangkuName = cangkuName;
    }

    public String getCangkuName()
    {
        return cangkuName;
    }
    public void setCangkuIsdel(String cangkuIsdel)
    {
        this.cangkuIsdel = cangkuIsdel;
    }

    public String getCangkuIsdel()
    {
        return cangkuIsdel;
    }
    public void setCangkuRemark(String cangkuRemark)
    {
        this.cangkuRemark = cangkuRemark;
    }

    public String getCangkuRemark()
    {
        return cangkuRemark;
    }
    public void setCangkuUid(Long cangkuUid)
    {
        this.cangkuUid = cangkuUid;
    }

    public Long getCangkuUid()
    {
        return cangkuUid;
    }
    public void setCangkuTime(Date cangkuTime)
    {
        this.cangkuTime = cangkuTime;
    }

    public Date getCangkuTime()
    {
        return cangkuTime;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cangkuId", getCangkuId())
            .append("cangkuName", getCangkuName())
            .append("cangkuIsdel", getCangkuIsdel())
            .append("cangkuRemark", getCangkuRemark())
            .append("cangkuUid", getCangkuUid())
            .append("cangkuTime", getCangkuTime())
            .append("sysUser",getSysUser())
            .toString();
    }
}
